package com.nuoyuan.wx.common.utils;

import java.util.Random;

/**
 * @Author linus
 * @Date 9/15/18 : 22 : 22
 * @ProjectName otc-backend
 * @Package com.shanlin.coinfairserver.common.util
 * @Description
 */
public class AuthCodeUtil {

    public static String getAuthCode(int length) {
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < length; i++) {
            sb.append(new Random().nextInt(10));
        }
        return sb.toString();
    }
}
